package cn.edu.cuc.yjsy.admin.connection;

import java.sql.ResultSet;
import java.sql.SQLException;

public interface IConnection {

	/* (non-Javadoc)
	 * @see cn.edu.cuc.yjsy.admin.util.DBConnection#executeQuery(java.lang.String)
	 */
	public abstract ResultSet executeQuery(String sql) throws SQLException;
	
	public void executeStatement(String sql) throws SQLException;

	/* (non-Javadoc)
	 * @see cn.edu.cuc.yjsy.admin.util.DBConnection#dispose()
	 */
	public abstract void dispose() throws SQLException;

	public abstract void connection() throws SQLException;

	public String getTableName();

	public String getFieldName(int key);
}